package nxu.it.movieapi.service.mapper;

import nxu.it.api.model.Movie;
import nxu.it.api.model.SimpleMovie;
import nxu.it.movieapi.Doc.MovieDoc;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring",uses = {GenreMapper.class, CastMapper.class})
public interface MovieMapper {

    Movie fromDoc(MovieDoc movieDoc);
    /*List<SimpleMovie> fromEntities(List<Movie> movies);*/
    SimpleMovie fromDocListToSimpleMovie(MovieDoc movieDoc);
    List<SimpleMovie>fromDocListToSimpleMovieList(List<MovieDoc> movieDocsList);
}
